<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>站长阿狸</title>
    {% load static %}
    <link href="{% static 'Fantasy/login.css' %}" rel="stylesheet">
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
</head>
<body style='
        text-align: center;
        background: url("{% static 'Fantasy/img/bg.jpg' %}") no-repeat;max-width:100%;'>
<div id="panel">
    <div class="panel-header">
        <h2>Fantasy用户登录</h2>
    </div>
    <div class="panel-content">
        <form action="{% url 'login' %}" method="POST">
            {% csrf_token %}
            {{ form }}
            <div class="user-pwd">
                <img src="{% static 'Fantasy/img/用户.png' %}" alt="图片">
                <input placeholder="请输入用户名/手机号" name="user">
            </div>
            <div class="user-pwd">
                <img src="{% static 'Fantasy/img/密码.png' %}">
                <input placeholder="请输入密码" type="password" name="pwd">
            </div>
            <div class="setting">
                <a href="#"><input type="checkbox"> 下次自动登录</a>
                <a href="#" class="pull-right">忘记密码?</a>
            </div>
            <input class="login-btn" type="submit" value="登&nbsp;录"/>
            <div class="reg">
                还没账号?&nbsp;&nbsp;<a href="{% url 'register' %}">立即注册</a>
            </div>
        </form>
    </div>
</div>


</body>
</html>
